package org.note.law.module.word;

import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface LawWordDAO extends JpaRepositoryImplementation<LawWord, String> {
    List<LawWord> findByWord(String word);

    @Transactional
    List<LawWord> deleteByWord(String word);
}
